<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <script src="js/base.js"></script>
    <title>找回支付密码（邮箱）</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/modify.css">
    <link rel="stylesheet" href="js/layer_mobile/need/layer.css">
    <script src="js/jquery-1.11.1.min.js"></script>
    <script src="js/form_validation.js"></script>
    <script src="js/layer_mobile/layer.js"></script>
</head>
<body>
<section class="wrap">
    <div></div>
    <div id="login-form">
        <div id="form-title" >邮箱验证，以确保本人操作</div>
            <form action="#"  class="bg-white"  id="form1">
            <div class="form-content " >
                <div class="clearfix input-inline"  style="position: relative">
                    <div class="formtitle pull-left">邮箱号</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1"     id="email_number"   class="inputstyle1" autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入邮箱号"/>
                    </div>
                    <input type="button" class="getCapche"  value="发送验证码" id="verification_code"  >
                </div>
            </div>
            <div class="form-content "  >
                <div class="clearfix input-inline " >
                    <div class="formtitle pull-left">验证码</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1" id="code"  class="inputstyle1" style="width:9rem " autocomplete="off"  maxlength="15" type="text" name="username" placeholder="请输入验证码"/>
                    </div>
                </div>
                <div style="text-align: right;margin-top:0.362666667rem;"> <a style="color: #22a0dc ">收不到验证码？</a></div>
            </div>
            <input type="button" class="login-button" value="验证" id="sublimit">
        </form>
    </div>
</section>
<script>
    $(function(){
        verificationCodeEmail();
        $('#sublimit').on('click',function(){
            var  res = searchSub();
            if(res =='ok'){
               //提交
           }else{
                //信息框
                //提示
                layer.open({
                    content:res
                    ,skin: 'msg'
                    ,time:3 //2秒后自动关闭
                });
            }
        });
    });
</script>
</body>
</html>